package com.spogher.bsc.models;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.model.CompoundPropertyModel;

import com.spogher.bsc.data.dataobjects.PlayerSheet;
import com.spogher.bsc.data.dataobjects.ScoreSheet;

public class ScoreSheetModel extends CompoundPropertyModel<ScoreSheet>{

	private static final long serialVersionUID = 1L;
	
	private List<PlayerSheet> homePlayerSheets;
	private List<PlayerSheet> awayPlayerSheets;
	
	public ScoreSheetModel(Object object) {
		super(object);
		homePlayerSheets = new ArrayList<PlayerSheet>();
		awayPlayerSheets = new ArrayList<PlayerSheet>();
		for (int i = 0; i < 12; i++ ) {
			homePlayerSheets.add(new PlayerSheet());
			awayPlayerSheets.add(new PlayerSheet());
		}
	}


	public void setHomePlayerSheets(List<PlayerSheet> homePlayerSheets) {
		this.homePlayerSheets = homePlayerSheets;
	}


	public List<PlayerSheet> getHomePlayerSheets() {
		return homePlayerSheets;
	}


	public void setAwayPlayerSheets(List<PlayerSheet> awayPlayerSheets) {
		this.awayPlayerSheets = awayPlayerSheets;
	}


	public List<PlayerSheet> getAwayPlayerSheets() {
		return awayPlayerSheets;
	}

}
